from typing import Optional
from pydantic import BaseModel

class ContactBase(BaseModel):
    Name: str
    TelNo: str
    CustomerProfileId: int
    IsDefault: bool = False
    Memo: Optional[str] = None

    class Config:
        from_attributes = True

class ContactCreate(ContactBase):
    pass

class Contact(ContactBase):
    ContactId: int

    class Config:
        from_attributes = True 